package Thread.Demo02;

/**
 * @Author Miku
 * @Create 2021/5/14 12:28
 */
public class TestThread implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println("11111");
        }
    }

    public static void main(String[] args) {
        //创建Runnable接口的实现类对象
        TestThread testThread = new TestThread();
        //创建线程对象，通过线程对象来开启多线程，代理
        Thread thread = new Thread(testThread);
        thread.start();

        for (int i = 0; i < 1000; i++) {
            System.out.println("22222");
        }

    }

}
